package com.ruoyi.common.enums;

/**
 * @author 杨光
 * @date 2021年08月12日 14:33
 */
public enum ExceptionCode {
    INVALID_KAPTCHA(100100,"验证码错误"),
    INVALID_USERNAME_PASSWORD(100101,"无效的用户名或密码"),
    JSON_CONVERTION_EXCEPTION(100102,"JSON转换异常"),
    PLAY_TIME_CONFICTION(100103,"电影播放时间冲突"),
    USER_ACCOUNT_IN_USE(100104,"用户账号已经被注册"),
    SEAT_ALREADY_SOLD(100105,"您选的座位已经售出，请重新选择"),

    NOT_AUTHRIZED(100106,"需要先登录才能操作"),
    UPLOAD_EXCEPTION(100107,"文件上传失败，请联系管理员"),
    APPLY_TIMES_EXCEPT_LIMIT(100108,"验证码申请次数太频繁，请24小时后再操作"),
    INVALID_ORDER_NO(100109,"订单号无效"),
    INVALID_PAY(100156,"无效的付款操作"),

    CANCEL_ORDER_EXCEPTION(100110,"自动取消订单失败"),
    ORDER_PRICE_EXCEPTION(100121,"警告,订单金额与实际不符"),
    REVERT_SEAT_STATUS_EXCEPTION(100111,"恢复座位状态失败"),
    MAKE_ORDER_EXCEPTION(100112,"生成订单失败，JSON转换异常"),
    NOT_MEETING_THE_COUPON_USAGE_THRESHOLD(100113,"不满足优惠券使用门槛"),
    HAVE_CUSTOMER_COUPON(100114,"已经领取过优惠券,不可重复领取"),
    BED_ALREADY_SOLD(100115,"您选的床位已经售出，请重新选择"),

    LOCK_ACCOUNT(100116,"该用户已被锁定!"),
    OUT_TIME_COUPON(100117,"不在优惠券领取时间"),
    HAVE_NO_COUPON(100118,"优惠券不足"),
    SAME_PASSWORD(100119,"密码不一致"),
    INVALID_ACCOUNT(100120,"无效的用户!"),
    ;


    ExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
